﻿using MediatR;
using SmartProduction.ErrorCode;

namespace SmartProduction.Write.API.Application.Commands.PurchaseCommand
{
    /// <summary>
    /// 采购明细
    /// </summary>
    public class PurchasedetailsCreateCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double Amount { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }

        /// <summary>
        /// 信息外键
        /// </summary>
        public int? MaterialId { get; set; }
    }
}
